package cn.yuyin.main;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import cn.yuyin.utile.RMSOperating;


public class MainMIDlet extends MIDlet {
	public MainCanvas mainCanvas;
	public static MainMIDlet mainMIDlet;
	public MainMIDlet() {
		mainCanvas = new MainCanvas();		
		mainMIDlet = this;
		Main.display = Display.getDisplay(this);
	}

	protected void destroyApp(boolean unconditional)
			throws MIDletStateChangeException {
		RMSOperating.setCurrentStatus(Main.currentStatus);

	}

	protected void pauseApp() {
		// TODO Auto-generated method stub

	}

	protected void startApp() throws MIDletStateChangeException {
		Main.display.setCurrent(mainCanvas);
	}

}
